@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&display=swap');

* {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding:0;
  box-sizing: border-box;
}

.popup-video, .gallery-popup {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background: rgba(0, 0, 0, .95);
  height: 100%;
  width: 100%;
  display: none;
  transition: .5s ease-in-out;
}

.popup-wrap {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  color: white;
  font-size: 1rem;
  max-width: 90%;
  max-height: 80%;
}

.popup-video .video-holder {
  position: relative;
  margin: auto;
  width: 50%;
  height: 50%;
}

.popup-video h3 {
  font-family: "Philosopher", sans-serif;
}

#portfolio {
  display:  block;
  width: 95%;
  justify-content: center;
align-items: center;
  padding: 20px 0;
  margin: auto;
  /* min-height: 100%; */
  /* min-height: 70vh; */
  position: relative;
  margin-top: 25px;
}

#portfolio h2 {
  display: block;
  text-align: center;
  font-family: "nasalization", sans-serif;
  font-size: 2rem;
  letter-spacing: .2rem;
  padding: 20px 0;
}
/* .pre-d{
  display:none;
  z-index: -5;
} */
.wrapper {
  display: flex;
  margin: auto;
  width: 90%;
  flex-wrap: wrap;
  justify-content: center;
  align-items:center;
  /* margin-top: 1px; */
}

.portfolio-container {

  width: 100%;
  margin: auto;
  display: block;

}
.portfolio-container.noshow{
  display: none;
}
.flex-heading {
  margin: auto;
  font-family: "nasalization", sans-serif;
  font-size: 2rem;
  letter-spacing: .2rem;
  text-align: center;
  padding: 50px 0 0;
  /* margin-bottom: 20px; */
}

.place {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80%;
  width: 100%;
  margin: auto;
}

.place h3 {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.holder-3 {
  order: 4;
}

/* .one{
  margin-bottom: 2px;
}
.two{
  margin-top:2px;
} */
.picture {
  position: relative;
  width: 100%;
  height: 0;
  --aspect-ratio: 16/9;
  padding-top: calc(100%/(var(--aspect-ratio)));
}

.picture img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .5s ease-in-out;
  cursor: pointer;
}

.one {
  position: relative;
  width: 100%;
  height: 0;
  --aspect-ratio: 16/9;
  padding-top: calc(100%/(var(--aspect-ratio)));
}

.two {
  position: relative;
  width: 100%;
  height: 0;
  --aspect-ratio: 16/9;
  padding-top: calc(100%/(var(--aspect-ratio)));
}

.holder-2, .holder-4 {
  display: flex;
  max-height: 100%;
  max-width: 100%;
  flex-direction: column;
  gap: 0px 0;
  /* margin:2px; */
}

.overlay p {
  display: none;
}

.overlay .content {
  position: relative;
  width: 100%;
  font-weight: 300;
  margin: auto;
  transform: translateY(40px);
  transition: .5s ease-in-out;
}

.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, .4);
  transition: .5s;
  color: white;
  transform: translate(-50%, -50%);
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.overlay:hover {
  width: 101%;
  height: 101%;
  opacity: 1;
  cursor: pointer;
  /* border-radius: 3px; */
}

.overlay:hover>* {
  transform: translateY(0);
  cursor: pointer;
}

.page {
  height: 100%;
  width: 100%;
}

.brand-img {
  height: 120px;
  width: 150px;
  border-radius: 12%;
  transition: .5s ease-in-out;
  margin-left: 5px;
  margin-top: 2px;
  opacity: 1;
}

.brand {
  /* margin: 8px 0 8px 0; */
  padding: 10px 0 0;
}

.navbar {
  background-color: black;
  background-image: url(https://images.unsplash.com/photo-1534796636912-3b95b3ab5986?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxleHBsb3JlLWZlZWR8MXx8fGVufDB8fHx8&w=1000&q=80);
  object-fit: cover;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  box-shadow: 2px 3px 3px 5px #888888;
}

.navbar ul {
  list-style: none;
}

nav .nav-item {
  color: white;
  text-decoration: none;
  font-family: "nasalization", sans-serif;
  padding: 5px;
  line-height: 1.5;
  margin-top: 15px;
  font-size: 1.3rem;
  transition: 0.5s;
  z-index: 11;
}

.navbar-links {
  display: flex;
  height: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-top: 25px;
}

nav .nav-item {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.nav-item {
  transition: .5s ease-in-out;
}

.nav-item.active {
  color: #FFC23C;
}

.toggle-button {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: white;
}

.p-btn-show, .show {
  border: none;
  background: rgba(0, 0, 0, .8);
  color: white;
  height: 40px;
  width: 50%;
  font-size: 1rem;
  border-radius: 15px;
  cursor: pointer;
  transition: .5s ease-in-out;
}

.p-btn {
  display: flex;
  margin: 50px auto;
  justify-content: center;
  align-items: center;
}

.hide {
  display: none;
}

.content h3 {
  color: white;
  font-family: 'Philosopher', sans-serif !important;
  font-weight: 300;
  text-align: center;
  font-size: 1.2rem;
  margin: none;
}

.holder-1, .holder-2, .holder-3, .holder-4 {
  display: flex;
  flex-basis: 1;
}

@media (min-width:969px) {
  .nak {
    margin-right: 3%;
    /* width:40%; */
    justify-content: flex-end;
    max-width: 20%;
  }

  .spaceman {
    margin-left: 10% !important;
    max-width: 90%;
  }

  .ric {
    margin-left: 3%;
    width: 50%;
  }

  .writeup {
    width: 100%;
  }
}

#middle {
  height: 100%;
  width: 95%;
  padding: 40px 0;
  /* background-color: rgba(0, 0, 0, .4); */
  /* background: rgba(255,255,255,1); */
  /* background: rgba(128, 128, 128, .1); */
  position: relative;
  margin: auto;
}

#middle h2 {
  color: black;
  text-align: center;
  font-family: "nasalization", sans-serif;
  font-weight: bold;
  font-size: 2.5rem;
  letter-spacing: .1rem;
  padding: 50px;
  margin: 30px auto;
  margin: auto;
}

#middle h3 {
  font-family: 'Philosopher', sans-serif;
  font-size: 1.9rem;
  letter-spacing: .1rem;
  padding: 15px 0;
}

.mid-container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 90%;
  height: 100%;
  margin: 0 auto;
  /* color: white; */
  /* color: black; */
  padding: 20px 0 0%;
  position: relative;
  text-align: center;
  flex-direction: column;
}

.about {
  display: flex;
  background: rgba(128, 128, 125, .2);
  justify-content: center;
  align-items: center;
  /* flex-shrink: 1; */
  width: 100%;
  /* height: 100%; */
  text-align: left;
  margin-top: 30px;
  border-radius: 10px;
  padding: 20px 0;
  /* box-shadow: 3px 4px 3px 3px rgba(0, 0, 0, .6); */
}

.writeup h3 {
  text-align: center;
  justify-content: center;
}

.img-holder {
  /* max-height: 20%; */
  max-width: 50%;
  display: flex;
  border: none;
}

.nak {
  order: 1;
  justify-content: center;
}

.spaceman {
  margin: auto;
  /* margin-left: 10%; */
  max-width: 400px;
  border-radius: 15px;
  padding:10px 0;
  max-height: 400px;
}


.ric {
  max-width: 400px;
  max-height: 80%;
}

.ric img {
  margin: auto;
  max-height: 100%;
  border-radius: 10px;
  /* margin-left: 10%; */
}

.nakul {
  max-width: 400px;
  border-radius: 10px;
  /* margin-right: 10%; */
  margin: auto;
}

.writeup {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* word-wrap: break-word; */
}

.writeup strong {
  font-size: 1.3rem;
  /* font-family: 'Abril Fatface', cursive; */
  font-family: 'Philosopher', sans-serif !important;
  /* font-style: italic; */
  font-weight: bold;
  letter-spacing: 2;
  /* font-family: "nasalization", sans-serif; */
  font-weight: lighter;
  margin-top: -5px;
  margin-bottom: 40px;
}

.writeup p {
  width: 80%;
  line-height: 1.5;
  margin: 1.3% auto;
  font-family: "Open sans", sans-serif;
}

@media only screen and (max-width:768px) {
  .portfolio-container .popup-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 80%;
    object-fit: cover;
  }

  .popup-video span, .gallery-popup span {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 3em;
    color: white;
    cursor: pointer;
  }

  .popup-video h3 {
    display: block;
    text-align: center;
    font-family: "Philosopher", sans-serif;
    font-size: .7rem;
    letter-spacing: .2rem;
    color: white;
    padding-top: 50px;
    margin: 50px auto;
  }

  .content {
    display: block;
    font-weight: 300;
    opacity: 1;
    color: white;
    transition: .5s;
    font-family: 'Abril Fatface', cursive;
  }

  .toggle-button {
    margin-top: 50px;
  }

  .p-btn {
    display: flex;
  }
}

@media only screen and (min-width:769px) {
  .portfolio-container .popup-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    height: 80%;
    /* object-fit: cover; */
  }

  .popup-video span {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 3em;
    color: white;
    cursor: pointer;
  }

  .popup-video h3 {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: "Philosopher", sans-serif;
    font-size: 1.3rem;
    letter-spacing: .2rem;
    color: white;
    padding-top: 60px;
    margin: 0 auto;
  }
}
@media only screen and (min-width:320px) and (max-width:680px){
  .social h3 {
    font-size: 1.2rem !important;
    padding: 10px;
  }
  .content h3{
    font-size: .9rem ;
  }
.holder-3{
  order:0;
}
  .popup-video h3 {
    display: block;
    left: 50%;
    bottom: 50px;
    text-align: center;
    font-family: "Philosopher", sans-serif;
    font-size: .7rem;
    letter-spacing: .1rem;
    color: white;
  }

  .portfolio-container .popup-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 80%;
    object-fit: cover;
  }

  .nakul, .spaceman, .ricky {
    max-width: 250px !important;
    margin: auto;
  }

  .img-holder {
    justify-content: center;
    align-items: center;
    margin: auto;

  }

  /* .nak {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  } */
  .about {
    display: flex;
    flex-direction: column;
  }

  .ric {
    display: flex;
    justify-content: center;
    align-content: center;
  }

  .ric img {
    margin: auto;
  }

  #middle .about h3 {
    font-size: 1.9rem;
  }

  .writeup p {
    width: 85%;
    line-height: 1.5;
  }

  .content h3 {
    font-size: .75rem;
  }

  .wrapper {
    width: 90%;
    margin: auto;
    justify-content: center;
  }
  .wrapper .holder-1,.wrapper .holder-3, .wrapper .holder-2 ,.wrapper .holder-4{
    width:100%;
    flex-direction: column;
    margin:2px;
  }
  .wrapper .holder-2{
    width:100%;
  }

  /* .holder-1, .holder-3  {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 80.5%;
    margin: 2px;
  }

  .holder-2, .holder-4  {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    padding: 2px;
    justify-content: center;
  }

  .one, .two  {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
  } */

  .one {
    margin-bottom: 2px;
  }

  .two {
    margin-top: 2px;
  }

  .picture {
    max-width: 100%;
  }

  .wrap-1 {
    grid-template-columns: repeat(2, 1fr);
  }

  .w-1, .w-2, .w-3, .w-4, .w-5 {
    grid-column: span 1;
  }
}


@media only screen and (min-width:681px) and (max-width:1200px) {

.flex-heading{
  font-size: 1.5rem;
}
.wrapper{
  width:90%;
  justify-content: center;

  margin:auto;
}
  .holder-1, .holder-3 {
    justify-content: center;
    align-items: center;
    width: 95%;

    margin: .2%;
  }

  .holder-2, .holder-4 {
    display: flex;
    flex-direction: column;
    width: 47.3%;
    margin:  .2% ;

    justify-content: center;
  }

  .one, .two {
    display: flex;
    flex-direction: row;
    width: 100%;

    justify-content: space-between;
  }

  .one {
    margin-bottom: .2%;
  }

  .two {
    margin-top: .6%;
  }

  .picture {
    width: 100%;
  }
  .content h3{
    font-size: .9rem;
  }
}

.writeup h3 {
  text-align: center;
  justify-content: center;
}

.img-holder {
  max-height: 50%;
  max-width: 60%;
  display: flex;
  border: none;
}

.nak {
  order: 1;
  justify-content: center;
}

.spaceman {
  margin: auto;

  max-width: 400px;
  border-radius: 10px;
}

.ric {
  max-width: 400px;
  max-height: 400px;
}

.ric img {
  margin: auto;
  max-height: 400px;
  border-radius: 10px;
}

.nakul {
  max-width: 400px;
  border-radius: 10px;
  margin: auto;
  max-height: 400px;
}

.writeup {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

}

.writeup strong {
  font-size: 1.3rem;
  /* font-family: 'Abril Fatface', cursive; */
  font-family: "open-sans", sans-serif;
  /* font-style: italic; */
  font-weight: bold;
  letter-spacing: 2;
  /* font-family: "nasalization", sans-serif; */
  font-weight: lighter;
  margin-top: -5px;
  margin-bottom: 40px;
}

.writeup p {
  width: 80%;
  line-height: 1.5;
  margin: 1.3% auto;
  font-family: "Open sans", sans-serif;
}

@media (max-width:968px) {
  .about {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .em a {
    line-height: 1;
    width: 75%;
    margin: 0 auto;
    color: black;
    text-decoration: underline;
  }

  .w {
    text-decoration: none;
    line-height: 1;
    width: 75%;
    margin: 0 auto;
    color: black;
    font-weight: bold;
  }

  .nakul, .spaceman {
    position: relative;
    margin: auto;
  }

  .img-holder {
    /* width: 100%; */
    justify-content: center;
    align-items: center;
  }

  .nak {
    order: 0;
  }

  .mid-container p {
    width: 80%;
  }
}

/*                    footer              */
#footer {
  width: 100%;
  background-image: url(https://images.unsplash.com/photo-1534796636912-3b95b3ab5986?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxleHBsb3JlLWZlZWR8MXx8fGVufDB8fHx8&w=1000&q=80);
  object-fit: cover;
  box-shadow: 2px -3px 3px 5px #888888;
  text-align: center;
  margin: auto;
  position: static;
  /* bottom:0; */
  display: flex;
  justify-content: flex-end;
}

.social {
  color: white;
  padding: 5px;
  margin: 0 auto;
}

.social h3 {
  font-size: 2rem;
  letter-spacing: .2rem;
  padding: 10px 0;
  font-family: "nasalization", sans-serif;
  margin: 15px 0;
}

.social p {
  font-size: .8rem;
  padding: 10px 0;
  margin: 15px auto 0;
  font-family: "open-sans", sans-serif;
}

.social .fa-brands {
  padding: 0 15px;
  margin: auto 10px;
  transition: 0.5s;
  font-size: 1.5rem;
  color: white;
}

@media (min-width:768px) and (max-width:968px) {
  .navbar-links a {
    font-size: 1.2rem;
  }
}

@media only screen and (min-width:320px) and (max-width:1024px) {
  .toggle-button {
    display: block;

  }

  .toggle-button.active .bar:nth-child(2) {
    opacity: 0;
  }

  .toggle-button.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: #FFC23C;
  }

  .toggle-button.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: #FFC23C;
  }

  .navbar-links {
    display: flex;
    position: absolute;
    left: -110%;
    top: 105px;
    /* margin: 30px; */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-image: url(https://images.unsplash.com/photo-1534796636912-3b95b3ab5986?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxleHBsb3JlLWZlZWR8MXx8fGVufDB8fHx8&w=1000&q=80);
    background-attachment: fixed;
    object-fit: cover;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: 0.5s;
    z-index: 1;
    font-size: 1.3rem;
  }

  .nav-item {
    font-size: 1.3rem;
  }

  .navbar-links>:nth-child(1) {
    padding-top: 80px;
  }

  .navbar-links.active {
    width: 100%;
    height: 100%;
    left: 0;
  }

  /* .overlay .content {
    position: relative;
    width: 100%;
    font-weight: 300;
    margin: auto;
      margin:none;
    transform: translateY(40px);
  } */
  .overlay:hover>* {
    transform: translatey(0);
    justify-content: center;
    opacity: 1;
  }

  .content h3 {
    color: white;
    font-family: 'Abril Fatface', cursive;
    font-weight: 300;
    text-align: center;
    margin: none;
    font-size: 1rem;
  }

  .content p {
    font-size: 1em;
    color: white;
    font-family: "open-sans", sans-serif;
    text-align: center;
  }

  .brand-img {
    height: 100px;
    width: 120px;
  }
}

@media only screen and (min-width:1201px) {
  .holder-1, .holder-3 {
    width: 64%;
    position: relative;
    /* max-height: 100%; */
    /* gap: 2px; */
    margin: .1% ;
  }

  .holder-2, .holder-4 {
    width: 31.8%;
    /* max-height: 100%; */
    display: flex;
    flex-direction: column;
    position: relative;
    /* justify-content: space-between; */
    align-items: center;
    /* gap: 2px; */
    margin:.1%;
  }

  .picture {
    max-width: 100%;
  }
  .one, .two{
    margin:.2% 0;
    width:99.78%;
  }
  /* .one{
    margin-bottom:.1%;
  } */
  .two{
    margin-top:.45%;


  }

  .picture img {
    object-fit: cover;
  }

  .wrapper{
    width:90%;
    justify-content: center;
    margin:auto;

    /* margin:2px; */

  }

  /* .one {
    margin:0 0 2px 0;
  }

  .two {
    margin:2px 0 0 0 ;
  } */

  .content h3 {
    font-size: 1rem;
  }
}

@media (hover:hover) {
  .picture .overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, .4);
    transition: .5s;
    color: white;
    transform: translate(-50%, -50%);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .overlay:hover {
    width: 101%;
    height: 101%;
    opacity: 1;
    cursor: pointer;
    border-radius: 3px;
  }

  .overlay :hover>* {
    transform: translateY(0);
    cursor: pointer;
    opacity: 1;
  }

  .nav-item:hover {
    transform: scale(.98);
    color: #FFC23C;
  }

  .brand-img:hover {
    transform: scale(1.1);
  }

  .social .fa-brands:hover {
    color: #FFC23C;
    transform: scale(1.2);
  }

  .gallery_image:hover {
    cursor: pointer;
  }

  .gallery-item:hover .gallery-image img {
    transform: scale(1.1);
    opacity: 1;
  }

  .p-btn-show:hover, .show:hover {
    color: #Feab3C;
    font-size: 1.1rem;
    box-shadow: 1px 1px 3px 3px black;
  }

  input[type=submit]:hover {
    color: #Feab3C;
    /* font-size: .8rem; */
    box-shadow: 1px 1px 3px 3px black;

  }
}

@media (hover:none) {
  .brand-img:hover {
    transform: none;
  }

  .nav-item:hover {
    transform: none;
    color: white;
  }

  .picture .overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, .3);
    transition: .5s ease-in-out;
    color: white;
    transform: translate(-50%, -50%);
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .portfolio-container .overlay .content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: auto;
    transform: translateY(0);
  }

  .social .fa-brands:hover {
    color: white;
    transform: none;
  }

  .gallery-image:hover {
    cursor: default;
    transform: none;
  }

  input[type=submit]:hover {
    box-shadow: none;
  }
}
